<% include ../header.ejs %>


<header data-am-widget="header" data-am-sticky class="am-header am-header-default" id="appTemplates-Nav">
    <div class="am-header-left am-header-nav">
        <a href='/smtool_project/wxapp/' class="">
            <img class="am-header-icon-custom"
                 src="data:image/svg+xml;charset&#x3D;utf-8,&lt;svg xmlns&#x3D;&quot;http://www.w3.org/2000/svg&quot; viewBox&#x3D;&quot;0 0 12 20&quot;&gt;&lt;path d&#x3D;&quot;M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z&quot; fill&#x3D;&quot;%23fff&quot;/&gt;&lt;/svg&gt;"
                 alt=""/>
        </a>
    </div>

    <h1 class="am-header-title">
        <a href="#title-link" class="" id="Typeface-whitecolor">组合情况</a>
    </h1>

    <!--<div class="am-header-right am-header-nav">-->
         <!--<a href="../stockgroup/edit" class="">-->
            <!--<i class="am-header-icon am-icon-plus"></i>-->
        <!--</a>-->
    <!--</div>-->
</header>



<div data-am-widget="list_news"
     class="am-list-news am-list-news-default ">

    <div class="am-list-news-bd" ng-app="stockgroupList" ng-controller="listController">


        <table class="am-table  am-table-centered">
            <tr>
                <th width="30%">
                    组合所属
                </th>
                <th>年收益</th>
                <th>日收益</th>
                <th>累计收益</th>
            </tr>

                <tr  ng-repeat="item in datas  track by $index">
                    <td ng-if="$even" rowspan="2" class="am-text-middle">
                        <a ng-click = "toDetail(item)">
                            <img ng-src="{{item.createUid.extension}}" alt="" class="am-comment-avatar" width="48" height="48"/>
                            <div class = "am-padding-xs" >{{item.createUid.name}}</div>
                            <div class = "am-badge  am-round am-fl" >{{item.industry.industryName}}</div>
                        </a>
                    </td>
                    <td ng-if="$even" rowspan="2" ng-class = "(item.yearRate.substr(0,item.yearRate.indexOf('.'))>0)?'am-text-danger':'am-text-success'" class="  am-text-middle"><p ng-class="(item.yearRate.substr(0,item.yearRate.indexOf('.'))>0)?'am-icon-arrow-up':'am-icon-arrow-down'"  style="margin: 0"></p><br>{{item.yearRate||'0%'}}</td>
                    <td ng-if="$even" rowspan="2" ng-class = "(item.dayRate.substr(0,item.dayRate.indexOf('.'))>0)?'am-text-danger':'am-text-success'" class="  am-text-middle"><p ng-class="(item.dayRate.substr(0,item.dayRate.indexOf('.'))>0)?'am-icon-arrow-up':'am-icon-arrow-down'"  style="margin: 0"></p><br>{{item.dayRate||'0%'}}</td>
                    <td ng-if="$even" rowspan="2" ng-class = "(item.ljRate.substr(0,item.ljRate.indexOf('.'))>0)?'am-text-danger':'am-text-success'" class="  am-text-middle"><p ng-class="(item.ljRate.substr(0,item.ljRate.indexOf('.'))>0)?'am-icon-arrow-up':'am-icon-arrow-down'"  style="margin: 0"></p><br>{{item.ljRate||'0%'}}</td>
                </tr>
        </table>


    </div>
</div>
<script src="/javascripts/app/stockgroup/stockgroup.js"></script>
<script>

</script>
<% include ../footer.ejs %>

